<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Import stylesheet</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xsltprocessor.hasexsltsupport.html">XSLTProcessor::hasExsltSupport</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.registerphpfunctions.html">XSLTProcessor::registerPHPFunctions</a></div>
 <div class="up"><a href="class.xsltprocessor.html">XSLTProcessor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="xsltprocessor.importstylesheet" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XSLTProcessor::importStylesheet</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">XSLTProcessor::importStylesheet</span> &mdash; <span class="dc-title">Import stylesheet</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-xsltprocessor.importstylesheet-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>XSLTProcessor::importStylesheet</strong></span>
    ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$stylesheet</code></span>
   )</div>

  <p class="para rdfs-comment">
   This method imports the stylesheet into the 
   <a href="class.xsltprocessor.html" class="classname">XSLTProcessor</a> for transformations.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-xsltprocessor.importstylesheet-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">stylesheet</code></em></dt>

     <dd>

      <p class="para">
       The imported style sheet as a <a href="class.domdocument.html" class="classname">DOMDocument</a> or
       <a href="class.simplexmlelement.html" class="classname">SimpleXMLElement</a> object.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-xsltprocessor.importstylesheet-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>

 <div class="refsect1 changelog" id="refsect1-xsltprocessor.importstylesheet-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.2.8</td>
       <td>
        Accepts <a href="class.simplexmlelement.html" class="classname">SimpleXMLElement</a> again which was broken
        since PHP 5.2.6.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xsltprocessor.hasexsltsupport.html">XSLTProcessor::hasExsltSupport</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.registerphpfunctions.html">XSLTProcessor::registerPHPFunctions</a></div>
 <div class="up"><a href="class.xsltprocessor.html">XSLTProcessor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
